package ai.zixing.mediator01;

public class Client {

    public static void main(String[] args) {
        // 创建中介者
        Mediator mediator = new MediatorImpl();
        Colleague c1 = new ConcreteColleagueA(mediator);
        c1.exec("key_A");

        Colleague c2 = new ConcreteColleagueB(mediator);
        c2.exec("key_B");
    }
}
